package com.dotflat.delegation.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "tb_delegation_medicine")
@Data
@EqualsAndHashCode(callSuper = true)
public class MedicineDelegation extends AreableObjectBase {
	@Column(columnDefinition = " varchar(32)  COMMENT '宝宝id'")
	private String childrenId;

	@Column(columnDefinition = " varchar(32)  COMMENT '家长id'")
	private String parentId;

	@Column(columnDefinition = " varchar(32)  COMMENT '家长id'")
	private String date;

	@Column(columnDefinition = "varchar(1024)  COMMENT '照片'")
	private String medias = "";

	@Column(columnDefinition = " varchar(255)  COMMENT '描述'")
	private String content = "";

	@Column(columnDefinition = " varchar(255)  COMMENT '症状'")
	private String symptoms = "";

	@Column(columnDefinition = " varchar(1024)  COMMENT '药品列表'")
	private String medicines = "";

	@Column(columnDefinition = " varchar(1024)  COMMENT '医嘱'")
	private String medicalOrder  = "";

	@Column(columnDefinition = " varchar(1024)  COMMENT '委托单'")
	private String delegateOrder  = "";

	@Column(columnDefinition = " varchar(1024)  COMMENT '委托单'")
	private String sign  = "";

	@Override
	public boolean isOwnerOnly(){
		return true;
	}
}
